package com.upup.train_management.service;

import com.upup.train_management.entity.Ticket;

import java.util.List;

public interface TicketService {
    List<Ticket> getAllTickets();
    Ticket getTicketById(Long id);
    Ticket getTicketByNumber(String ticketNumber);
    List<Ticket> getTicketsByUserId(Long userId);
    List<Ticket> getTicketsByScheduleId(Long scheduleId);
    List<Ticket> getTicketsByUserAndStatus(Long userId, String status);
    Ticket createTicket(Ticket ticket);
    Ticket updateTicket(Ticket ticket);
    boolean cancelTicket(Long ticketId);
    String generateTicketNumber();
}